package com.spboot.service;

import com.spboot.entity.Product;
import com.spboot.page.PageInfo;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author guocb
 * @since 2020-01-13
 */
public interface ProductService extends IService<Product> {

	/**
	 * 根据商品名称分词搜索
	 * @param proName
	 * @return
	 */
	PageInfo<Product> selectProductSolr(String proName,int pageIndex);
	
	/**
	 * 添加或更新
	 * @param product
	 * @return
	 */
	boolean saveOrUpdateProduct(Product product);
	
	boolean deleteProductById(Integer id);
}
